<?php 
global $isMobile;
//if (!$isMobile){
?>

<!-- AddThis Button BEGIN -->
<span><strong><?php echo gettext("Compartí el anuncio clasificado en las redes sociales")?>:</strong>
</span>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
	<a class="addthis_button_preferred_1"></a> <a
		class="addthis_button_preferred_2"></a> <a
		class="addthis_button_preferred_3"></a> <a
		class="addthis_button_preferred_4"></a> <a
		class="addthis_button_compact"></a> <a
		class="addthis_counter addthis_bubble_style"></a>

	<?php
	if (logged_in()){
		$denunciasURL = get_denuncias_url();
		echo "<form action='$denunciasURL' method='post'>
		<input type='hidden' name='publicacion_id' id='publicacion_d' value='$_GET[publicacion_id]'/>
		<input type='image' src='http://".DOMINIO_BASE_COMPLETO."/images/alert-32.png' id='reportar-publicacion-submit' height='32' width='32' />
		</form>";
	};
	?>
</div>
<script
	type="text/javascript"
	src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f86efcf0401839a"></script>
<!-- AddThis Button END -->
	

<?php if ($isMobile){?>

<br>
<div class="text-center">

<a href="whatsapp://send?text=<?php echo $publicacion['titulo']; echo " "; echo getPublicacionPath($publicacion['publicacion_id'])?>" data-action="share/whatsapp/share" target="external" class="button button-action button-pill"><i class="fa fa-whatsapp"> <?php echo gettext("Compartir en WhatsApp")?></i></a>
</div>
<?php }?>

<?php 
//}
?>